package com.example.compreshensiveshop.service;

import com.example.compreshensiveshop.dto.CartAddDTO;
import com.example.compreshensiveshop.dto.CartUpdateDTO;
import com.example.compreshensiveshop.vo.CartListVO;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Cart Service Interface
 */
public interface CartService {

    void addCart(CartAddDTO cartAddDTO);

    PageInfo<CartListVO> queryByCId(Long customerId, Integer pageNum, Integer pageSize);

    void deleteByCIds(List<Long> ids);

    void updateCart(CartUpdateDTO cartUpdateDTO);
}